using ComputerWorker;
using NLog.Web;

IHost host = Host.CreateDefaultBuilder(args)
    .ConfigureServices(services =>
    {
        services.AddSingleton<BemfaManage>();
        services.AddHostedService<Worker>();
    }).UseNLog().UseWindowsService().Build();
await host.RunAsync();
